﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn"	uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
  <head>
  	
  	<%@ include file="/WEB-INF/include/meta.jsp" %>
  	<%@ include file="/WEB-INF/include/css.jsp" %>
	
	<title>${institution.profile.name} - 众投湾</title>
	
	<fmt:setBundle basename="ApplicationMessage"/>
	<fmt:setLocale value="zh_CN"/>
	
  </head>

  <body>
  
	<%@ include file="/WEB-INF/include/header.jsp" %>
	
	<div class="container">
	
	  <div class="zz-startup-cover">
	    <a class="zz-startup-avatar-wrapper" href="${ctx}/institutions/${institution.id}">
	      <img class="img-thumbnail" src="${ctx.upload}/${institution.profile.avatar}" width="180px" height="180px">
	    </a>
	      
	    <div class="zz-institution-head">
	      <div class="zz-institution-title">${institution.profile.name}</div>
	      <div class="invest-row">
	        <div class="invest-row-header">投资阶段：</div>
            <p class="invest-row-options text-muted line-ellipsis">
              <c:forEach var="phase" items="${fn:split(institution.phase, ',')}">
                <span>${phase}</span>&nbsp;
              </c:forEach>
            </p>
          </div>
          <div class="invest-row">
            <div class="invest-row-header">投资行业：</div>
            <p class="invest-row-options text-muted line-ellipsis">
              <c:forEach var="focus" items="${fn:split(institution.focus, ',')}">
                <span>${focus}</span>&nbsp;
              </c:forEach>
            </p>
          </div>
	    </div><!-- zz-institution-head -->
	      
	    <ul class="nav nav-tabs zz-startup-tabs">
	      <li class="active"><a href="javascript: void(0)">投资人</a></li>
	      <li><a href="${ctx}/institutions/${institution.id}/cases">投资案例</a></li>
	    </ul>
	  </div><!-- zz-startup-cover -->
	    
	  <div class="zz-institution-content clearfix">
	  
        <div class="panel panel-default zz-institution-panel">
      
          <div class="zz-institution-heading clearfix">
            <a class="btn btn-primary btn-shadow btn-shadow-primary zz-investor-apply-btn demo2do-input-large-width" href="${ctx}/signup?institution=${institution.id}">申请入驻</a>
          </div>
    
          <div class="panel-body">
            
            <c:if test="${empty institution.investors}">
              <p class="text-deep-gray font-weight-bold font-size-16">暂无入驻投资人</p>
            </c:if>
          
            <c:forEach var="investor" items="${institution.investors}">
              <div class="col-xs-4">
                <div class="investor-box">
                
                  <img class="pull-left" src="${ctx.upload}/${investor.profile.avatar}" width="80px" height="80px">
                  <div class="investor-box-main">
                    <h3 class="no-top-margin title"><a href="#">${investor.profile.name}</a></h3>
                    <p class="line-ellipsis">${investor.title}</p>
                    <div class="invest-row clearfix">
                      <div class="invest-row-header">投资阶段：</div>
                      <p class="invest-row-options text-muted line-ellipsis">
                        <c:forEach var="phase" items="${fn:split(investor.finance.phase, ',')}">
                          <span>${phase}</span>
                        </c:forEach>
                      </p>
                    </div>
                    <div class="invest-row clearfix">
                      <div class="invest-row-header">投资行业：</div>
                      <p class="invest-row-options text-muted line-ellipsis">
                        <c:forEach var="focus" items="${fn:split(investor.finance.focus, ',')}">
                          <span>${focus}</span>
                        </c:forEach>
                      </p>
                    </div>
                  </div>
                  
                </div>
              </div>
            </c:forEach>
        
          </div>
        </div>
	      
	  </div><!-- zz-institution-content -->
	    
	</div>
	
	<%@ include file="/WEB-INF/include/footer.jsp" %>
	<%@ include file="/WEB-INF/include/script.jsp" %>
    
  </body>
  
</html>
